package views
{
	import flash.display.SimpleButton;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	[Embed(source="assets/assets.swf", symbol="VStart")]
	public class VStart extends Sprite
	{
		public var btnStart:SimpleButton;
		public var btnHelp:SimpleButton;
		
		public function VStart()
		{
			super();
			
			btnStart.addEventListener(MouseEvent.CLICK, onStart);
			btnHelp.addEventListener(MouseEvent.CLICK, onHelp);
		}
		
		private function onStart(e:MouseEvent):void
		{
			var event:ViewEvent = new ViewEvent(ViewEvent.CHANGE_VIEW);
			event.nextView = VMain.GAME;
			dispatchEvent(event);
		}
		
		private function onHelp(e:MouseEvent):void
		{
			
		}
	}
}